import {ADD_COUNT,REDUCE_COUNT} from '../constrants'
export const addCount = {
    type: ADD_COUNT
}

// 异步需要
export const reduceCount = (count) => {
    return (dispatch) => {
        setTimeout(()=> {
            dispatch({
                type: REDUCE_COUNT,
                count
            })
        },1000)
    }
}